/* Preloader */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1c2539;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
    transition: all 1s ease-in-out;
  }
  
  #preloader.hide {
    opacity: 0;
    visibility: hidden;
    width: 0%;
  }
  
  #preloader .hide-loader {
    position: absolute;
    left: 15px;
    top: 15px;
    background-color: var(--color-two);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    z-index: 3;
    transition: all 1s ease-in-out;
  }
  
  #preloader.hide .hide-loader {
    opacity: 0;
    visibility: hidden;
  }
  
  .preloader-inner {
    position: absolute;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Spinner Loading */
  .preloader-inner .spinner {
    animation: spinner 1s infinite linear;
    border-radius: 50%;
    border: 3px solid #ffffff;
    border-top-color: var(--color-two);
    width: 60px;
    height: 60px;
    margin: 0 auto 3.5em auto;
  }
  
  /* Loading text */
  .preloader-inner .loading-text {
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    text-align: center;
    user-select: none;
    transition: all 0.5s ease-in-out;
  }
  
  #preloader.hide .preloader-inner .loading-text {
    opacity: 0;
    visibility: hidden;
  }
  
  .preloader-inner .loading-text .characters {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.2);
  }
  
  .preloader-inner .loading-text .characters:before {
    content: attr(data-preloader-text);
    position: absolute;
    left: 0;
    top: 0px;
    opacity: 0;
    transform: rotateY(-90deg);
    color: #ffffff;
    animation: characters 4s infinite;
  }
  
  .preloader-inner .loading-text .characters:nth-child(2):before {
    animation-delay: 0.2s;
  }
  
  .preloader-inner .loading-text .characters:nth-child(3):before {
    animation-delay: 0.4s;
  }
  
  .preloader-inner .loading-text .characters:nth-child(4):before {
    animation-delay: 0.6s;
  }
  
  .preloader-inner .loading-text .characters:nth-child(5):before {
    animation-delay: 0.8s;
  }
  
  .preloader-inner .loading-text .characters:nth-child(6):before {
    animation-delay: 1s;
  }
  
  .preloader-inner .loading-text .characters:nth-child(7):before {
    animation-delay: 1.2s;
  }

  .preloader-inner .loading-text .characters:nth-child(8):before {
    animation-delay: 1.4s;
  }

  .preloader-inner .loading-text .characters:nth-child(9):before {
    animation-delay: 1.6s;
  }

  .preloader-inner .loading-text .characters:nth-child(10):before {
    animation-delay: 1.8s;
  }

  .preloader-inner .loading-text .characters:nth-child(11):before {
    animation-delay: 2s;
  }
  
  /* Animation of the preloader */
  @keyframes spinner {
    to {
      transform: rotateZ(360deg);
    }
  }
  
  /* Animation of letters loading from the preloader */
  @keyframes characters {
    0%,
    75%,
    100% {
      opacity: 0;
      transform: rotateY(-90deg);
    }
    25%,
    50% {
      opacity: 1;
      transform: rotateY(0deg);
    }
  }
  
  /* Preloader End */